package com.geneqiao.jdbc.pool;

import java.util.HashMap;
import java.util.Map;

public class JDBCMap
{
	// private static final Logger logger = Logger.getLogger(JDBCMap.class);

	private static final Map<String, Map<Integer, String>> buildMap = new HashMap<>();

	public static boolean containsKey(String cacheKey)
	{
		synchronized (buildMap)
		{
			return buildMap.containsKey(cacheKey);
		}
	}

	public static Map<Integer, String> get(String cacheKey)
	{
		synchronized (buildMap)
		{
			return buildMap.get(cacheKey);
		}
	}

	public static void put(String cacheKey, Map<Integer, String> map)
	{
		synchronized (buildMap)
		{
			buildMap.put(cacheKey, map);
		}
	}
}
